Skip to main content

Token Denoms

Queries the token pair for the specified VLP address.

query Token_denoms($token: String!) {
router {
token_denoms(token: $token) {
denoms {
chain_uid
token_type {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://devnet-testing.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token_denoms($token: String!) {\n router {\n token_denoms(token: $token) {\n denoms {\n chain_uid\n token_type {\n ... on NativeTokenType {\n native {\n denom\n }\n }\n ... on SmartTokenType {\n smart {\n contract_address\n }\n }\n ... on VoucherTokenType {\n voucher\n }\n }\n }\n }\n }\n}","variables":{"token":"usdt"}}'

Open in Playground

Arguments

  • token (String!): The token to fetch denoms for.

Return Fields

FieldTypeDescription
vlp_addressStringThe VLP contract address.
token_1StringThe Id of the first token in the pool.
token_2StringThe Id of the second token in the pool.